package com.moresir.validatetools.common.response;

import lombok.Getter;

@Getter
public enum ResponseEnum {
    //数据校验 服务错误码
    VALIDATE_EXCEPTION(120600001, "数据校验异常", "VALIDATOR ERROR"),
    VALIDATE_RULES_EXCEPTION(120600002, "数据校验规则异常", "VALIDATOR RULES ERROR"),
    VALIDATE_RULE_LEXER_ERROR(120600004, "规则词法分析器异常", "VALIDATOR RULE LEXER ERROR"),
    VALIDATE_RULE_LANGUAGE_CONFIG_NOT_EXIST(120600005, "数据校验语言包不存在", "VALIDATOR RULE LANGUAGE NOT EXIST"),
    VALIDATE_TRANS_REF_FORM_ERROR(120600003, "校验表单异常", "Error in object transfer"),
    VALIDATE_OBJECT_NOT_FOUND(120600006, "数据校验对象不存在", "VALIDATOR OBJECT NOT FOUND");

    /** 响应码 */
    private Integer code;
    /** 中文提示信息 */
    private String zhMsg;
    /** 英文提示信息 */
    private String enMsg;

    ResponseEnum(Integer code, String zhMsg, String enMsg) {
        this.code = code;
        this.zhMsg = zhMsg;
        this.enMsg = enMsg;
    }
}
